@extends('layouts.adminlayout')

@section('main')

<h1>Show Course</h1>

<p>{{ link_to_route('manager-courses.index', 'Return to all courses') }}</p>

<table class="table table-striped table-bordered">
	<thead>
		<tr>
			<th>Course_name</th>
				<th>Course_type</th>
				<th>Start_time</th>
				<th>End_time</th>
				<th>Quantity</th>
				<th></th>
				<th></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>{{{ $course->course_name }}}</td>
			<td>{{{ $course->course_type }}}</td>
			<td>{{{ $course->start_time }}}</td>
			<td>{{{ $course->end_time }}}</td>
			<td>{{{ $course->quantity }}}</td>
            <td>{{ link_to_route('manager-courses.edit', 'Edit', array($course->id), array('class' => 'btn btn-info')) }}</td>
            <td>
                {{ Form::open(array('method' => 'DELETE', 'route' => array('manager-courses.destroy', $course->id))) }}
                    {{ Form::submit('Delete', array('class' => 'btn btn-danger')) }}
                {{ Form::close() }}
            </td>
	</tr>
	</tbody>
</table>

@stop
